package cn.practice._07springaop.egaop;

import org.springframework.stereotype.Component;

@Component
public class CartServiceImpl implements CartService{
    @Override
    public String addCart(String cartDetail) {
//        System.out.println("添加购物车成功："+cartDetail);
        if (cartDetail.equals("赌博挂")){
            throw new RuntimeException("添加购物车失败");
        }
        return "添加购物车成功";
    }
}
